public class Test {
    public static void main(String[] args) {
        //使用常量字符串构造
        String s1 = "hello";
        System.out.println(s1);

        //直接new String 对象
        String s2 = new String("hello");
        System.out.println(s2);

        //使用字符数组进行构造
        char[] array = {'h','e','l','l','o'};
        String s3 = new String(array);
        System.out.println(s3);


    }
}
